# import the necessary packages
import argparse
import cv2 as cv

# construct the argument parser and parse the arguments
ap = argparse.ArgumentParser()
ap.add_argument("-i","--image",required=True,help="The Path to the image")
args = vars(ap.parse_args())

# load the image and show it
image = cv.imread(args["image"])
cv.imshow("Original",image)

# flip the image horizontally
flipped = cv.flip(image,1)
cv.imshow("Flipped Horizontally",flipped)

# flip the image vertically
flipped = cv.flip(image,0)
cv.imshow("Flipped Vertically",flipped)

# flip the image along both axes
flipped = cv.flip(image,-1)
cv.imshow("Flipped Horizontally & Vertically",flipped)
cv.waitKey(0)